package com.ihr360.oneclick.dto;

/**
 * 记录用户发送免费短信的余额，临时方案
 *
 * @author tom
 * @date 18-1-30
 */

import com.ihr360.commons.model.entity.StringIdWithTime;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Index;
import javax.persistence.Table;

@Entity
@Table(name = "tab_company_free_message", indexes = {@Index(name = "tab_company_free_message_companyIdx", columnList = "companyId", unique = true)})
public class CompanyFreeMessageDto extends StringIdWithTime {

    @Column(length = 40, nullable = false, unique = true)
    private String companyId;

    /** 免费短信条数*/
    @Column
    private Integer smsFreeCount;

    public String getCompanyId() {
        return companyId;
    }

    public void setCompanyId(String companyId) {
        this.companyId = companyId;
    }

    public Integer getSmsFreeCount() {
        return smsFreeCount;
    }

    public void setSmsFreeCount(Integer smsFreeCount) {
        this.smsFreeCount = smsFreeCount;
    }
}
